<?php
  header('content-type: text/css');
?>
.dragitem, .unknown { list-style-image:url(icons/file.png); }
<?php
  opendir('icons');
  while ($icon = readdir()) {
    $aIcon = explode('.', $icon);
    if ($aIcon[1]=='png' && $aIcon[0]!='file')
      echo('.'.str_replace('-', ', .', $aIcon[0]).' { list-style-image:url(icons/'.$icon.'); }'."\n");
  }
?>
